package com.cheetah.start.system.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cheetah.start.system.admin.domain.SysAdmin;

import java.util.List;

/**
 * @author Feel
 * @create 2021/7/18
 **/
public interface SysAdminService extends IService<SysAdmin> {


    SysAdmin getByName(String name);

    boolean saveWithRoleIds(SysAdmin sysAdmin);

    boolean updateByIdWithRole(SysAdmin sysAdmin);

    boolean isRepeat(SysAdmin sysAdmin);

    /**
     * 设置角色id
     *
     * @param records 记录
     */
    void setRoleIds(List<SysAdmin> records);
}
